import {request} from '@umijs/max'

export function getClrList(){
    return request<API.PageInfo<API.ClrInfo>>('/classroom/all')
}

export function addClr(body:API.Clr_Add_Body){
    return request<number>('/classroom/add',{
        method:'POST',
        data:body
    })
}
export function updateClr(body:API.Clr_Update_Body){
    return request<null>('/classroom/update',{
        method:'POST',
        data:body
    })
}
export function removeClr(id:number){
    return request<null>(`/classroom/remove/${id}`)
}